package com.imc.platform.frame.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * Created by tanweiping on 2018/9/17.
 */
@Mapper
public interface ICountMapper {

    @Select("SELECT count(*) FROM t_user")
    int getSummaryUserSize();

    @Select("SELECT t.tableSn FROM t_sn t where t.tableName = 't_access_count'")
    String getAccessCount();

    @Update("update t_sn t set t.tableSn= t.tableSn + 1  WHERE t.tableName = 't_access_count'")
    void UpdateAccessCount();

}
